import re
line = '<pre><code class="prism language-powershell">'
get = re.search(r'(.*)<pre><code class="prism language(.*)', string=line)
print(get.group().split('-')[1].replace('">', ''))